x86/xsave: recover from faults on XRSTOR
authorJan Beulich <jbeulich@suse.com>
Tue, 4 Jun 2013 07:27:58 +0000 (09:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Jun 2013 07:27:58 +0000 (09:27 +0200)
commitc6ae65db36b98f2866f74a9a7ae6ac5d51fedc67
tree301dac31411d313e98bda1e9b58d6ed431dded34
parent8dcf9f0113454f233089e8e5bb3970d891928410
x86/xsave: recover from faults on XRSTOR

Just like FXRSTOR, XRSTOR can raise #GP if bad content is being passed
to it in the memory block (i.e. aspects not under the control of the
hypervisor, other than e.g. proper alignment of the block).

Also correct the comment explaining why FXRSTOR needs exception
recovery code to not wrongly state that this can only be a result of
the control tools passing a bad image.

This is CVE-2013-2077 / XSA-53.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/i387.c
xen/arch/x86/xstate.c